fix: filter deleted indexes in GetIndexedSegments to prevent stale segment loading [2.6]#48559
fix: filter deleted indexes in GetIndexedSegments to prevent stale segment loading [2.6]#48559XuanYang-cn wants to merge 1 commit intomilvus-io:2.6from
Conversation
…gment loading GetIndexedSegments included deleted index entries in targetIndices but skipped them in the counting loop, causing indexedFields to never equal len(targetIndices) when deleted entries existed. This made every segment appear unindexed after drop+create index cycles, forcing GetQueryVChanPositions to fall back to loading stale pre-compaction segments instead of the optimized one. pr: milvus-io#48558 See also: milvus-io#48557 Signed-off-by: yangxuan <xuan.yang@zilliz.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: XuanYang-cn The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
[INFO] PR Label Summary by Default
[WARNING] Milestone not set
You can set milestone by commenting: Use /refresh-label to update related check and label manually |
|
[ci-v2-notice] To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2.6 #48559 +/- ##
==========================================
+ Coverage 76.99% 77.27% +0.28%
==========================================
Files 1700 1960 +260
Lines 262533 309561 +47028
==========================================
+ Hits 202142 239220 +37078
- Misses 53550 62808 +9258
- Partials 6841 7533 +692
🚀 New features to boost your workflow:
|
Summary
targetIndicesinGetIndexedSegments, fixing a mismatch wherelen(targetIndices)included deleted entries but the counting loop skipped themGetQueryVChanPositionsto load stale pre-compaction segments instead of the optimized onepr: #48558
issue: #48557
Signed-off-by: yangxuan xuan.yang@zilliz.com